<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>收件箱</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
	</head>

	<body>
		<table width="80%" align="center" border="1">
			<tr>
				<th colspan="7">
					<font color="#ff0000"> <b>收件箱</b>
					</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="WriteMessage.shtml">写信</a>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="HavingSendMessage.shtml">发件箱</a>
				</th>
			</tr>
			<tr align="center">
				<td>
					编号
				</td>
				<td>
					状态
				</td>
				<td>
					发件人
				</td>
				<td>
					信息标题
				</td>
				<td>
					发件时间
				</td>
				<td>
					mss Id
				</td>
				<td>
					操作
				</td>
			</tr>
			<c:forEach var="v" items="${mrList}" varStatus="vs">
				<tr align="center">
					<td>
						${vs.count}
					</td>
					<td>
						<c:if test="${v.state==0}">未读</c:if>
						<c:if test="${v.state==1}">已读</c:if>
					</td>
					<td>
						${v.mss.sendId} ${v.mss.sendName}
					</td>
					<td>
						${v.mss.title}
					</td>
					<td>
						${v.mss.sendTime}
					</td>
					<td>
						${v.rid}
					</td>
					<td>
						<a href="SeeMessage.shtml?mid=${v.mss.messageId}&rid=${v.rid}">查看</a>
						<c:if test="${v.state==1}">
							<a href="ReplyMessage.shtml?sendId=${v.mss.sendId}">回复</a>
							<a href="${v.mss.messageId}">删除</a>
							</c:if>
					</td>
				</tr>
			</c:forEach>
		</table>
	</body>
</html>
